namespace CSharpPro._1014
{
    public class Student
    {
        // 静态属性
        public static int id;

        // 成员属性
        public string name;
        public int age;
        public int score;

        // alt + insert
        public Student() { }

        // 构造函数
        public Student(int id, string name, int age, int score)
        {
            Student.id = id;

            this.name = name;
            this.age = age;
            this.score = score;
        }
        public override string ToString()
        {
            return $"[编号:{id}, 姓名:{name}, 年龄:{age}, 成绩:{score}]";
        }
    }
}